import './assets/css/main.css';
import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import { createPinia } from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import naive from 'naive-ui';
import EmptyData from '@/components/EmptyData/index.vue';
import globalComponent from './components/FormCustomComs/index';

const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);

const app = createApp(App);
app.use(pinia);
app.use(router);
app.use(naive);
app.use(globalComponent);
app.component('EmptyData', EmptyData);

// 屏蔽警告信息
app.config.warnHandler = () => {};

app.mount('#app');
